﻿namespace LaoLuo
{
    public static class ArrayExtensions
    {
        public static T TryGetFromArray<T>(this T[] arr, int index)
        {
            return index > arr.Length - 1 ? default(T) : arr[index];
        }
    }
}
